package functions;

/**
 * Class for function f(x) = x^3
 * @author Patrick Bauer
 */
public class powX3 extends AbstractPanel {
    public powX3(int colorScheme) {
        super(colorScheme);
        this.setToolTipText("f(x) = x^3 von x = -10.0 bis x = 10.0");
    }

    @Override
    public double getY(double x) {
        return Math.pow((double) x, 3.0);
    }    
   
}
